package com.css.common.core.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 开票人员确认状态代码
 */
@Getter
@AllArgsConstructor
public enum KpryqrztEnum {

    /**
     * 0-未确认
     */
    KPRYQRZT_WQR("0","未确认"),

    /**
     * 1-已确认
     */
    KPRYQRZT_YQR("1","已确认"),

    /**
     * 2-已拒绝
     */
    KPRYQRZT_YJJ("2","已拒绝"),
	
	/**
     * 3-已解除
     */
	KPRYQRZT_YJC("3","已解除");

    private final String dm;

    private final String mc;

    public static String getMc(String dm) {
        KpryqrztEnum res = Arrays.stream(values())
                .filter(x -> x.getDm().equals(dm))
                .findFirst().orElse(null);
        return res == null ? null : res.getMc();
    }
}
